package DeMo2;

public class Duck extends Animal
        implements IRunable,IFlyable,ISwimable{
    public Duck(String name) {
        super(name);
    }

    @Override
    public void fly() {
        System.out.println(this.name+" 在飞....");
    }

    @Override
    public void run() {
        System.out.println(this.name+" 在跑....");
    }

    @Override
    public void swim() {
        System.out.println(this.name+" 在游....");
    }
}
